﻿/************************************************************************************
* Copyright (c) 2019 All Rights Reserved.
*命名空间：Merge.BLL
*文件名： CaverBuffData
*创建人： Liebeskind
*创建时间：2019/6/28 9:31:32
*描述
*=====================================================================
*修改标记
*修改时间：2019/6/28 9:31:32
*修改人：Liebeskind
*描述：
************************************************************************************/
using Commonality.Model.Classify;
using Commonality.Model.Xml;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Merge.BLL
{
    public class CaverBuffData
    {
        public static string caverBuffDataFeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffData.xml";


        public static string caverBuffDataA1FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataA1.xml";
        public static string caverBuffDataA2FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataA2.xml";
        public static string caverBuffDataA3FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataA3.xml";
        public static string caverBuffDataB1FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataB1.xml";
        public static string caverBuffDataB2FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataB2.xml";
        public static string caverBuffDataB3FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataB3.xml";
        #region 缓存数据加载
        /// <summary>
        /// 仓的缓存数据加载
        /// </summary>
        public static void CaverBuffDataLoad()
        {
            try
            {
                string SNpi;    //规划值
                string SNi;     //实际值
                //A
                #region 仓A11
            //Caver.CaveA11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "IPC", "CaverBuffData", "CaverA11", "sEigenvector");
                Caver.CaveA11.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "LINE"));
                Caver.CaveA11.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA11", "Eigenvector", "PN");
                Caver.CaveA11.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Remark"));
                Caver.CaveA11.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA11", "Eigenvector", "KCAndBF"));
            for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA11", string.Format( "ListSNProgramme{0}",i+1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA11.ListSNProgramme.Add(SNpi);
                        Caver.CaveA11.ContProgramme = Caver.CaveA11.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA11", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\""&& SNi != "")
                    {
                        Caver.CaveA11.ListSN.Add(SNpi);
                        Caver.CaveA11.Cont = Caver.CaveA11.ListSN.Count;
                    }
                }
            #endregion
                #region 仓A12
            Caver.CaveA12.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA12", "Eigenvector", "LINE"));
                Caver.CaveA12.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA12", "Eigenvector", "PN");
                Caver.CaveA12.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA12", "Eigenvector", "Remark"));
                Caver.CaveA12.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA12", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA12", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA12.ListSNProgramme.Add(SNpi);
                        Caver.CaveA12.ContProgramme = Caver.CaveA12.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA12", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA12.ListSN.Add(SNpi);
                        Caver.CaveA12.Cont = Caver.CaveA12.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A13
                Caver.CaveA13.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA13", "Eigenvector", "LINE"));
                Caver.CaveA13.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA13", "Eigenvector", "PN");
                Caver.CaveA13.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Remark"));
                Caver.CaveA13.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA13", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA13.ListSNProgramme.Add(SNpi);
                        Caver.CaveA13.ContProgramme = Caver.CaveA13.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA13", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA13.ListSN.Add(SNpi);
                        Caver.CaveA13.Cont = Caver.CaveA13.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A14
                Caver.CaveA14.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA14", "Eigenvector", "LINE"));
                Caver.CaveA14.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA14", "Eigenvector", "PN");
                Caver.CaveA14.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA14", "Eigenvector", "Remark"));
                Caver.CaveA14.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA14", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA14", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA14.ListSNProgramme.Add(SNpi);
                        Caver.CaveA14.ContProgramme = Caver.CaveA14.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA14", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA14.ListSN.Add(SNpi);
                        Caver.CaveA14.Cont = Caver.CaveA14.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A15
                Caver.CaveA15.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA15", "Eigenvector", "LINE"));
                Caver.CaveA15.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "PN");
                Caver.CaveA15.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Remark"));
                Caver.CaveA15.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA15", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA15.ListSNProgramme.Add(SNpi);
                        Caver.CaveA15.ContProgramme = Caver.CaveA15.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName,  "CaverBuffData", "CaverA15", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA15.ListSN.Add(SNpi);
                        Caver.CaveA15.Cont = Caver.CaveA15.ListSN.Count;
                    }
                }
            #endregion

                #region 仓A21
                Caver.CaveA21.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA21", "Eigenvector", "LINE"));
                Caver.CaveA21.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA21", "Eigenvector", "PN");
                Caver.CaveA21.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA21", "Eigenvector", "Remark"));
                Caver.CaveA21.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA21", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA21", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA21.ListSNProgramme.Add(SNpi);
                        Caver.CaveA21.ContProgramme = Caver.CaveA21.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA21", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA21.ListSN.Add(SNpi);
                        Caver.CaveA21.Cont = Caver.CaveA21.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A22
                Caver.CaveA22.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA22", "Eigenvector", "LINE"));
                Caver.CaveA22.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA22", "Eigenvector", "PN");
                Caver.CaveA22.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA22", "Eigenvector", "Remark"));
                Caver.CaveA22.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA22", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA22", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA22.ListSNProgramme.Add(SNpi);
                        Caver.CaveA22.ContProgramme = Caver.CaveA22.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA22", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA22.ListSN.Add(SNpi);
                        Caver.CaveA22.Cont = Caver.CaveA22.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A23
                Caver.CaveA23.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA23", "Eigenvector", "LINE"));
                Caver.CaveA23.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA23", "Eigenvector", "PN");
                Caver.CaveA23.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA23", "Eigenvector", "Remark"));
                Caver.CaveA23.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA23", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA23", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA23.ListSNProgramme.Add(SNpi);
                        Caver.CaveA23.ContProgramme = Caver.CaveA23.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA23", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA23.ListSN.Add(SNpi);
                        Caver.CaveA23.Cont = Caver.CaveA23.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A24
                Caver.CaveA24.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA24", "Eigenvector", "LINE"));
                Caver.CaveA24.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA24", "Eigenvector", "PN");
                Caver.CaveA24.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA24", "Eigenvector", "Remark"));
                Caver.CaveA24.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA24", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA24", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA24.ListSNProgramme.Add(SNpi);
                        Caver.CaveA24.ContProgramme = Caver.CaveA24.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA24", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA24.ListSN.Add(SNpi);
                        Caver.CaveA24.Cont = Caver.CaveA24.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A25
                //Caver.CaveA11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA11", "sEigenvector");
                Caver.CaveA25.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA25", "Eigenvector", "LINE"));
            Caver.CaveA25.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA25", "Eigenvector", "PN");
            Caver.CaveA25.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA25", "Eigenvector", "Remark"));
            Caver.CaveA25.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA25", "Eigenvector", "KCAndBF"));
            for (int i = 0; i < 20; i++)
            {
                SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA25", string.Format("ListSNProgramme{0}", i + 1));
                if (SNpi != "\"\"" && SNpi != "")
                {
                    Caver.CaveA25.ListSNProgramme.Add(SNpi);
                    Caver.CaveA25.ContProgramme = Caver.CaveA25.ListSNProgramme.Count;

                }

                SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA25", string.Format("ListSN{0}", i + 1));
                if (SNi != "\"\"" && SNi != "")
                {
                    Caver.CaveA25.ListSN.Add(SNpi);
                    Caver.CaveA25.Cont = Caver.CaveA25.ListSN.Count;
                }
            }
                #endregion

                #region 仓A31
                Caver.CaveA31.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA31", "Eigenvector", "LINE"));
                Caver.CaveA31.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA31", "Eigenvector", "PN");
                Caver.CaveA31.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA31", "Eigenvector", "Remark"));
                Caver.CaveA31.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA31", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA31", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA31.ListSNProgramme.Add(SNpi);
                        Caver.CaveA31.ContProgramme = Caver.CaveA31.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA31", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA31.ListSN.Add(SNpi);
                        Caver.CaveA31.Cont = Caver.CaveA31.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A32
                Caver.CaveA32.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA32", "Eigenvector", "LINE"));
                Caver.CaveA32.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA32", "Eigenvector", "PN");
                Caver.CaveA32.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA32", "Eigenvector", "Remark"));
                Caver.CaveA32.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA32", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA32", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA32.ListSNProgramme.Add(SNpi);
                        Caver.CaveA32.ContProgramme = Caver.CaveA32.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA32", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA32.ListSN.Add(SNpi);
                        Caver.CaveA32.Cont = Caver.CaveA32.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A33
                Caver.CaveA33.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA33", "Eigenvector", "LINE"));
                Caver.CaveA33.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA33", "Eigenvector", "PN");
                Caver.CaveA33.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA33", "Eigenvector", "Remark"));
                Caver.CaveA33.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA33", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA33", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA33.ListSNProgramme.Add(SNpi);
                        Caver.CaveA33.ContProgramme = Caver.CaveA33.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA33", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA33.ListSN.Add(SNpi);
                        Caver.CaveA33.Cont = Caver.CaveA33.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A34
                Caver.CaveA34.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA34", "Eigenvector", "LINE"));
                Caver.CaveA34.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA34", "Eigenvector", "PN");
                Caver.CaveA34.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA34", "Eigenvector", "Remark"));
                Caver.CaveA34.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA34", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA34", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA34.ListSNProgramme.Add(SNpi);
                        Caver.CaveA34.ContProgramme = Caver.CaveA34.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA34", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA34.ListSN.Add(SNpi);
                        Caver.CaveA34.Cont = Caver.CaveA34.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A35
                Caver.CaveA35.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA35", "Eigenvector", "LINE"));
                Caver.CaveA35.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA35", "Eigenvector", "PN");
                Caver.CaveA35.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA35", "Eigenvector", "Remark"));
                Caver.CaveA35.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA35", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA35", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA35.ListSNProgramme.Add(SNpi);
                        Caver.CaveA35.ContProgramme = Caver.CaveA35.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName,  "CaverBuffData", "CaverA35", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA35.ListSN.Add(SNpi);
                        Caver.CaveA35.Cont = Caver.CaveA35.ListSN.Count;
                    }
                }
                #endregion

                //B
                #region 仓B11
                //Caver.CaveB11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "IPC", "CaverBuffData", "CaverB11", "sEigenvector");
                Caver.CaveB11.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "LINE"));
                Caver.CaveB11.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "PN");
                Caver.CaveB11.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Remark"));
                Caver.CaveB11.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB11.ListSNProgramme.Add(SNpi);
                        Caver.CaveB11.ContProgramme = Caver.CaveB11.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB11.ListSN.Add(SNpi);
                        Caver.CaveB11.Cont = Caver.CaveB11.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B12
                Caver.CaveB12.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "LINE"));
                Caver.CaveB12.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "PN");
                Caver.CaveB12.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Remark"));
                Caver.CaveB12.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB12.ListSNProgramme.Add(SNpi);
                        Caver.CaveB12.ContProgramme = Caver.CaveB12.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB12.ListSN.Add(SNpi);
                        Caver.CaveB12.Cont = Caver.CaveB12.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B13
                Caver.CaveB13.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "LINE"));
                Caver.CaveB13.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "PN");
                Caver.CaveB13.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Remark"));
                Caver.CaveB13.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB13.ListSNProgramme.Add(SNpi);
                        Caver.CaveB13.ContProgramme = Caver.CaveB13.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB13.ListSN.Add(SNpi);
                        Caver.CaveB13.Cont = Caver.CaveB13.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B14
                Caver.CaveB14.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "LINE"));
                Caver.CaveB14.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "PN");
                Caver.CaveB14.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Remark"));
                Caver.CaveB14.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB14.ListSNProgramme.Add(SNpi);
                        Caver.CaveB14.ContProgramme = Caver.CaveB14.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB14.ListSN.Add(SNpi);
                        Caver.CaveB14.Cont = Caver.CaveB14.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B15
                Caver.CaveB15.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "LINE"));
                Caver.CaveB15.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "PN");
                Caver.CaveB15.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Remark"));
                Caver.CaveB15.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB15.ListSNProgramme.Add(SNpi);
                        Caver.CaveB15.ContProgramme = Caver.CaveB15.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB15.ListSN.Add(SNpi);
                        Caver.CaveB15.Cont = Caver.CaveB15.ListSN.Count;
                    }
                }
                #endregion

                #region 仓B21
                Caver.CaveB21.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "LINE"));
                Caver.CaveB21.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "PN");
                Caver.CaveB21.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Remark"));
                Caver.CaveB21.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB21.ListSNProgramme.Add(SNpi);
                        Caver.CaveB21.ContProgramme = Caver.CaveB21.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB21.ListSN.Add(SNpi);
                        Caver.CaveB21.Cont = Caver.CaveB21.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B22
                Caver.CaveB22.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "LINE"));
                Caver.CaveB22.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "PN");
                Caver.CaveB22.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Remark"));
                Caver.CaveB22.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB22.ListSNProgramme.Add(SNpi);
                        Caver.CaveB22.ContProgramme = Caver.CaveB22.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB22.ListSN.Add(SNpi);
                        Caver.CaveB22.Cont = Caver.CaveB22.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B23
                Caver.CaveB23.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "LINE"));
                Caver.CaveB23.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "PN");
                Caver.CaveB23.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Remark"));
                Caver.CaveB23.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB23.ListSNProgramme.Add(SNpi);
                        Caver.CaveB23.ContProgramme = Caver.CaveB23.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB23.ListSN.Add(SNpi);
                        Caver.CaveB23.Cont = Caver.CaveB23.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B24
                Caver.CaveB24.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "LINE"));
                Caver.CaveB24.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "PN");
                Caver.CaveB24.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Remark"));
                Caver.CaveB24.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB24.ListSNProgramme.Add(SNpi);
                        Caver.CaveB24.ContProgramme = Caver.CaveB24.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB24.ListSN.Add(SNpi);
                        Caver.CaveB24.Cont = Caver.CaveB24.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B25
                //Caver.CaveB11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName,  "CaverBuffData", "CaverB11", "sEigenvector");
                Caver.CaveB25.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "LINE"));
                Caver.CaveB25.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "PN");
                Caver.CaveB25.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Remark"));
                Caver.CaveB25.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB25.ListSNProgramme.Add(SNpi);
                        Caver.CaveB25.ContProgramme = Caver.CaveB25.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB25.ListSN.Add(SNpi);
                        Caver.CaveB25.Cont = Caver.CaveB25.ListSN.Count;
                    }
                }
                #endregion

                #region 仓B31
                Caver.CaveB31.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "LINE"));
                Caver.CaveB31.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "PN");
                Caver.CaveB31.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Remark"));
                Caver.CaveB31.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB31.ListSNProgramme.Add(SNpi);
                        Caver.CaveB31.ContProgramme = Caver.CaveB31.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB31.ListSN.Add(SNpi);
                        Caver.CaveB31.Cont = Caver.CaveB31.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B32
                Caver.CaveB32.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "LINE"));
                Caver.CaveB32.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "PN");
                Caver.CaveB32.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Remark"));
                Caver.CaveB32.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB32.ListSNProgramme.Add(SNpi);
                        Caver.CaveB32.ContProgramme = Caver.CaveB32.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB32.ListSN.Add(SNpi);
                        Caver.CaveB32.Cont = Caver.CaveB32.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B33
                Caver.CaveB33.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "LINE"));
                Caver.CaveB33.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "PN");
                Caver.CaveB33.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Remark"));
                Caver.CaveB33.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB33.ListSNProgramme.Add(SNpi);
                        Caver.CaveB33.ContProgramme = Caver.CaveB33.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB33.ListSN.Add(SNpi);
                        Caver.CaveB33.Cont = Caver.CaveB33.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B34
                Caver.CaveB34.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "LINE"));
                Caver.CaveB34.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "PN");
                Caver.CaveB34.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Remark"));
                Caver.CaveB34.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB34.ListSNProgramme.Add(SNpi);
                        Caver.CaveB34.ContProgramme = Caver.CaveB34.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB34.ListSN.Add(SNpi);
                        Caver.CaveB34.Cont = Caver.CaveB34.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B35
                Caver.CaveB35.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "LINE"));
                Caver.CaveB35.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "PN");
                Caver.CaveB35.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Remark"));
                Caver.CaveB35.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "KCAndBF"));
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB35.ListSNProgramme.Add(SNpi);
                        Caver.CaveB35.ContProgramme = Caver.CaveB35.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB35.ListSN.Add(SNpi);
                        Caver.CaveB35.Cont = Caver.CaveB35.ListSN.Count;
                    }
                }
                #endregion
            }
            catch (Exception)
            {
            }
        }
        static object ProgrammeWarehousingWriteBufferLock = new object();
        /// <summary>
        /// 规划入仓将数据缓存
        /// </summary>
        /// <param name="number"></param>
        /// <param name="ind"></param>
        /// <param name="sna"></param>
        /// <param name="snb"></param>
        public static void ProgrammeWarehousingWriteBuffer(int number,int ind,string sna,string snb)
        {
            lock (ProgrammeWarehousingWriteBufferLock)
            {
                if (number < 200)
                {
                    if (number < 120)
                    {
                        //A1区
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 130)
                    {
                        //A2区
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 140)
                    {
                        //A3区
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }

                }
                else
                {
                    if (number < 220)
                    {
                        //B1区
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 230)
                    {
                        //B2区
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 240)
                    {
                        //B3区
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                }
            }

        }
        static object PracticalWarehousingWriteBufferLock = new object();
        /// <summary>
        /// 实际入仓将数据缓存
        /// </summary>
        /// <param name="number"></param>
        /// <param name="ind"></param>
        /// <param name="sna"></param>
        /// <param name="snb"></param>
        public static void PracticalWarehousingWriteBuffer(int number, int ind, string sna, string snb)
        {
            lock (PracticalWarehousingWriteBufferLock)
            {
                if (number < 200)
                {
                    if (number < 120)
                    {
                        //A1区
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 130)
                    {
                        //A2区
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 140)
                    {
                        //A3区
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 2), snb);
                    }

                }
                else
                {
                    if (number < 220)
                    {
                        //B1区
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 230)
                    {
                        //B2区
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 240)
                    {
                        //B3区
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 2), snb);
                    }
                }
            }

        }
        static object BufferDataClearanceLock = new object();
        /// <summary>
        /// 清仓时清除缓存
        /// </summary>
        /// <param name="number"></param>
        public static void BufferDataClearance(int number)
        {
            lock (BufferDataClearanceLock)
            {
                if (number < 200)
                {
                    if (number < 120)
                    {
                        //A1区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), "Eigenvector", "PN", "");
                    }
                    else if (number < 130)
                    {
                        //A2区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), "Eigenvector", "PN", "");
                    }
                    else if (number < 140)
                    {
                        //A3区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), "Eigenvector", "PN", "");
                    }
                }
                else
                {
                    if (number < 220)
                    {
                        //B1区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), "Eigenvector", "PN", "");
                    }
                    else if (number < 230)
                    {
                        //B2区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), "Eigenvector", "PN", "");
                    }
                    else if (number < 240)
                    {
                        //B3区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), "Eigenvector", "PN", "");
                    }
                }
            }


        }
        static object WriteCaverEigenvectorLock = new object();
        public static void WriteCaverEigenvector(int number,ref CEigenvector cEigenvector)
        {
            lock (WriteCaverEigenvectorLock)
            {
                switch (number)
                {
                    //A
                    case 111:
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 112:
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 113:
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 114:
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 115:
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    //
                    case 121:
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 122:
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 123:
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 124:
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 125:
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    //
                    case 131:
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 132:
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 133:
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 134:
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 135:
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;

                    #region B区
                    //
                    case 211:
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 212:
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 213:
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 214:
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 215:
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    //
                    case 221:
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 222:
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 223:
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 224:
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 225:
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    //
                    case 231:
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 232:
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 233:
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 234:
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    case 235:
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "PN", cEigenvector.PN);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                        break;
                    #endregion
                    default:
                        break;
                }
            }

        }
        #endregion
    }
}
